<%@ page import="com.itheima.pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
       <%-- ${empty user}
        ${not empty user}--%>
      <h1>首页 ${user.username}</h1>
       <c:if test="${user==null}">
           <a href="/login.jsp">用户登录</a> <br>
       </c:if>
       <c:if test="${user!=null}">
           <a href="/user?method=logout">注销</a> <br>
       </c:if>
      <a href="/contact?method=findAll">查询所有联系人信息</a> <br>
      <a href="/contact?method=findByPage">分页查询所有联系人信息</a> <br>
  </body>
</html>
